package JLB_Chapter_05;

// ChatAtTest
public class code_05_04 {
    public static void main(String[] args) {
        String num = "1234 5678";
        int size = num.length();
        System.out.println(size);
        String str = "床前明月光，疑是地上霜。";
        char chr = str.charAt(4);
        System.out.println("字符串中索引位置为4的字符是：" + chr);
        String a = "HelloWorld";
        String b = "Hello";
        String c = b + "World";
        String d = "Hello" + "World";
        System.out.println(a == c);
        System.out.println(a == d);
    }
}
